<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Ingresar al Sistema</title>
<style type="text/css">
<!--
.Estilo3 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #003399;
	font-weight: bold;
}
.Estilo4 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>
<table width="100%" height="100%" border="0">
  <tr>
    <td width="27%" height="75">&nbsp;</td>
    <td width="38%">&nbsp;</td>
    <td width="35%">&nbsp;</td>
  </tr>
  <tr>
    <td height="196">&nbsp;</td>
    <td><table width="400" height="100%" border="10" bordercolor="#66CCFF">
      <tr>
        <td><table width="109%" height="59" border="0" background="images/Flogin.gif">
          <tr>
            <td width="26%"><img src="images/plogin.jpg" width="98" height="70" /></td>
			 <td width="74%"><div align="right"><span class="Estilo3">Ingresar al Sistema</span></div></td>
          </tr>
        </table></td>
        </tr>
      <tr>
        <td>
		<form action="UsuarioIngresoServlet" method="post">
		<table width="200" border="0" align="center">
          <tr>
            <td><div align="right"><span class="Estilo4">Usuario</span></div></td>
            <td><img src="images/user.png" width="28" height="31" /></td>
            <td>
            <input type="text" name="idUsuario" />            </td>
          </tr>
          <tr>
            <td><div align="right"><span class="Estilo4">Contrase&ntilde;a</span></div></td>
            <td><img src="images/clave.gif" width="28" height="31" /></td>
            <td><input type="password" name="clave" /></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><label>
              <input type="submit" name="Submit" value="Ingresar" />
            </label></td>
          </tr>
        </table>
		</form>		</td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<%
if(request.getAttribute("ingreso")!=null){
	if(request.getAttribute("ingreso").equals("negado")){
		out.println("<h4 align='center'><font color='red'>Sus datos son incorrectos intente de nuevo</font></h4>");
	}	
}
%>
</body>
</html>
